/* awebgif.awebrx - Install or uninstall the AWeb GIF plugin */ options results if left(address(),5)~="AWEB." then do ports=show("P") parse var ports dummy "AWEB." portnr . if portnr="" then do address command "run AWeb3:AWeb-II" address command "WaitForPort AWEB.1" portnr=1 end address value "AWEB."portnr 'get activeport' address value result end parse arg args parse source dummy1 dummy2 called . i=lastpos(called,'/') if i==0 then i=lastpos(called,':') if i>0 then path=left(called,i) else path='' if args='' then do if ~open(tf,"T:awebgifsetup.html","W") then exit call writeln tf,"
" call writeln tf," |
" call writeln tf," |
Back to documentation" call close tf 'open "file:///T:awebgifsetup.html" reload' 'wait "file:///T:awebgifsetup.html"' 'allowcmd' address command 'delete T:awebgifsetup.html quiet' end else do ext="gif" rest=";" 'getcfg MIME stem m' do i=1 to m.0 if upper(left(m.i.value,10))="IMAGE/GIF;" then do parse var m.i.value type ";" ext ";" action ";" rest leave end end if upper(left(args,9))="DEINSTALL" then do mime="IMAGE/GIF;"ext";;"rest end else do progress="" defprogress="4" loops="" defloops="-1" lowpri="" save="" do while args~="" parse var args nextarg args interpret nextarg end if progress="" then progress=defprogress if loops="" then loops=defloops mime="IMAGE/GIF;"ext";A;AWebPath:awebplugin/awebgif.awebplugin;PROGRESS="progress" LOOPS="loops lowpri end 'setcfg MIME "'mime'" ADD' if upper(save)="YES" then do 'savesettings' end 'open "file:///AWebPath:awebplugin/docs/awebgif.html"' end exit